package com.example.sb.config;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @PROJECT_NAME sb
 * @PACKAGE_NAME com.example.sb.config
 * @USER junji
 * @CREATE 2021-12-2021/12/12 12:42
 * @DESC
 */
@AllArgsConstructor
@Getter
public enum ResultCode {
    //成功状态码
    SUCCESS(200,"成功"),
    FAIL(201,"失败"),
    EXCEPTION(400,"系统异常"),
    EXCEPTION_NO_PERMISSION(401,"权限不足,无法访问"),
    EXCEPTION_NO_PARAMETER(402,"方法参数异常");

    private final int code;
    private final String message;
}

